projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00f9f1c
)
scrolled window: Drop dead code
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 20 Feb 2015 13:23:53 +0000
(08:23 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 20 Feb 2015 13:28:58 +0000
(08:28 -0500)
The allocation is never used in this function, so don't bother
getting it.
gtk/gtkscrolledwindow.c
patch
|
blob
|
history
diff --git
a/gtk/gtkscrolledwindow.c
b/gtk/gtkscrolledwindow.c
index ad40c08bd7171da33645e4813a78251129cd1381..39dddc973f4626331766b1ca8311251368d92167 100644
(file)
--- a/
gtk/gtkscrolledwindow.c
+++ b/
gtk/gtkscrolledwindow.c
@@
-2464,13
+2464,10
@@
gtk_scrolled_window_allocate_child (GtkScrolledWindow *swindow,
GtkAllocation *relative_allocation)
{
GtkWidget *widget = GTK_WIDGET (swindow), *child;
- GtkAllocation allocation;
GtkAllocation child_allocation;
child = gtk_bin_get_child (GTK_BIN (widget));
- gtk_widget_get_allocation (widget, &allocation);
-
gtk_scrolled_window_relative_allocation (widget, relative_allocation);
child_allocation.x = relative_allocation->x;